<template></template>
<script setup>
import { onLaunch, onShow, onHide } from "@dcloudio/uni-app";
import { getCurrentInstance } from "vue";

// const { proxy } = getCurrentInstance();
import { useI18n } from "vue-i18n";

const { t, locale } = useI18n();
// onLaunch(() => {
// 	console.log("App Launch");
// });
onShow(() => {
	//判断国际化
	setTimeout(() => {
		uni.setTabBarItem({
			index: 0,
			text: t("page.home"),
			fail(err) {}, // 静默处理错误
		});
		uni.setTabBarItem({
			index: 1,
			text: t("page.report"),
			fail(err) {},
		});
		uni.setTabBarItem({
			index: 2,
			text: t("page.message"),
			fail(err) {},
		});
		uni.setTabBarItem({
			index: 3,
			text: t("page.mine"),
			fail(err) {},
		});
	}, 500);
});
// onHide(() => {
// 	console.log("App Hide");
// });
</script>
<style lang="scss">
@import "uview-plus/index.scss";
/*每个页面公共css */

/* #ifdef APP-PLUS */
.headerBox,
.badgeWhite {
	/* // 安全区域 */
	/* // IOS11.2+ */
	padding-top: env(safe-area-inset-top) !important;
	/* // IOS11 */
	padding-top: constant(safe-area-inset-top) !important;
	/* // 安卓 */
	padding-top: 60rpx !important;
}

/* #endif */

.phoneTopBg {
	/* #ifdef APP-PLUS */
	/* // 安全区域 */
	/* // IOS11.2+ */
	height: env(safe-area-inset-top) !important;
	/* // IOS11 */
	height: constant(safe-area-inset-top) !important;
	/* // 安卓 */
	height: 60rpx !important;
	width: 100%;
	background: #fff;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 5;
	/* #endif */
}

img {
	pointer-events: auto;
}
:deep(.u-cell__body) {
	padding: 30rpx 40rpx !important;
}
:deep(.u-cell__left-icon-wrap) {
	margin: 0 !important;
}
:deep(.u-cell__title-text) {
	color: rgba(0, 0, 0, 0.9) !important;
	font-size: 16px !important;
}
:deep(.u-slide-up-enter-active) {
	/* #ifdef H5 */
	bottom: 70px !important;
	/* #endif */
}
:deep(.u-fade-enter-active) {
	/* #ifdef H5 */
	bottom: 70px !important;
	/* #endif */
}
</style>
